convert 1D array into 2D array solution

join shbcf.ru